package top.hcode.hoj.pojo.entity.coll;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 客观题题目信息
 * (coll_question)表实体类
 *
 * @author orangej
 * @since 2025-02-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("coll_question")
public class CollQuestion implements Serializable {

    private static final long serialVersionUID = 7307380934L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    private String collId;

    private String title;

    @ApiModelProperty(value = "题目类型",notes = "1 单选题；2 多选题；3 填空题；4 简答题")
    private Integer questionType;

    private BigDecimal score;

    private Integer sortOrder;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    /*关联属性*/

}
